package HttpUtils;

import android.content.Context;

import http.HttpBodyBase;

/**
 * Created by Administrator on 2016/2/17.
 */
public class HttpParkRequest extends HttpBodyBase{
    public HttpParkRequest(Context context,int type) {
        super(context);
        switch (type){
            case 0://获取附近停车场数据
                setAction("/index.php/Home/CarPark/relative_car_park_list");
                break;
            case 1:
                //获取停车场详情
                setAction("/index.php/Home/CarPark/one_car_park_detail");
                break;
        }
    }

    /**
     * 获取附近停车场信息
     * @param lat
     * @param lon
     * @param raidus 5 以千米未单位
     */
    public void getPatkList(String lat,String lon  ,long raidus){
        params.put("lat",lat);
        params.put("lon",lon);
        params.put("raidus",raidus);
    }

    /**
     * 获取详情
     * @param id
     */
    public void getParkDeatilById(long id){
        params.put("id",id);
    }

}
